﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LowLevelGraphics.Dijkstra
{
    /// <summary>
    /// 
    /// </summary>
    public class Edge
    {
        private Node m_Origin;
        private Node m_Destination;
        private double m_Distance;

        /// <summary>
        /// Konstruktor
        /// </summary>
        /// <param name="origin">Startknoten</param>
        /// <param name="destination">Zielknoten</param>
        /// <param name="distance">Distanz</param>
        public Edge(Node origin, Node destination, double distance)
        {
            this.m_Origin = origin;
            this.m_Destination = destination;
            this.m_Distance = distance;
        }

        /// <summary>
        /// Gets the destination
        /// </summary>
        public Node Destination
        {
            get { return m_Destination; }
        }

        /// <summary>
        /// Gets the distance
        /// </summary>
        public double Distance
        {
            get { return m_Distance; }
        }

        /// <summary>
        /// Gets the origin
        /// </summary>
        public Node Origin
        {
            get { return m_Origin; }
        }
    }
}
